package com.leyou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_spec_param")
public class SpecParam {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;//规格参数id
    private Long cid;//商品分类id
    private Long groupId;//规格组id
    @Column(name = "`name`")
    private String name;  // 参数名
    @Column(name = "`numeric`")
    private Boolean numeric;  // 是否是数字类型参数,true或false;0为否,1为是
    private String unit;  // 数字类型参数的单位，非数字类型可以为空
    private Boolean generic;  // 是否是sku通用属性，true或false;0为否,1为是
    private Boolean searching;  // 是否用于搜索过滤，true或false;0为否,1为是
    private String segments;  // 数值类型参数，如果需要搜索，则添加分段间隔值,如cpu频率间隔：0.5-1.0
}
